<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="alert alert-success">{$count} 条结算操作  {$money}元</div>
    <div class="btn-group">
        {if condition="isset($row.id)"}
        <a href="/admin/withdraw_auto/edit/ids/{$row.id}?dialog=1" class="btn btn-success"><i class="fa fa-list">&nbsp;全部</i></a>
        <a href="/admin/withdraw_auto/edit/ids/{$row.id}?dialog=1&type=微信" class="btn btn-info">微信自动转账</a>
        <a href="/admin/withdraw_auto/edit/ids/{$row.id}?dialog=1&type=支付宝" class="btn btn-warning">支付宝自动转账</a>
        <a href="/admin/withdraw_auto/edit/ids/{$row.id}?dialog=1&type=QQ钱包" style="background-color: #631313b8;" class="btn btn-warning">QQ钱包自动转账</a>
        <a href="/admin/withdraw_auto/export/ids/{$row.id}?dialog=1" class="btn btn-primary">导出列表数据</a>
        {else /}
        <a href="/admin/withdraw_auto/{$action}?dialog=1" class="btn btn-success"><i class="fa fa-list">&nbsp;全部</i></a>
        <a href="/admin/withdraw_auto/{$action}?dialog=1&type=微信" class="btn btn-info">微信自动转账</a>
        <a href="/admin/withdraw_auto/{$action}?dialog=1&type=支付宝" class="btn btn-warning">支付宝自动转账</a>
        <a href="/admin/withdraw_auto/{$action}?dialog=1&type=QQ钱包" style="background-color: #631313b8;" class="btn btn-warning">QQ钱包自动转账</a>
        {/if}
    </div>
    <hr>
    <div class="table-responsive">
        <table class="table table-striped table-bordered">
            <thead>
                <tr>
                    <th width="10"><input type="checkbox" id="checkbox" value="" /></th>
                    <th>ApiId</th>
                    <th>金额</th>
                    <th>实际</th>
                    <th>手续费</th>
                    <th>状态</th>
                    <th>姓名</th>
                    <th>账号</th>
                    <th>方式</th>
                    <th>提现时间</th>
                    {if condition="input('get.type')"}<th>自动转账</th>{/if}
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {volist name="list" id="vo" empty="<tr class='no-records-found'><td colspan='14'>没有找到匹配的记录</td></tr>"}
                <tr>
                    <th width="10" style="vertical-align:middle;"><input type="checkbox" id="{$vo.id}" value="" name="data" /></th>
                    <td width="10">{$vo.api_id}</td>
                    <td>{$vo.money}</td>
                    <td>{$vo.realmoney}</td>
                    <td>{$vo.percent}</td>
                    <td class="status status{$vo.id}">{if condition="$vo.status eq 1"}<font color="green"><i class="fa fa-check"></i></font>{elseif condition="$vo.status eq 0"}<font color="blue"><i class="fa fa-refresh"></i></font>{else /}<font color="red"><i class="fa fa-remove"></i></font>{/if}</td>
                    <td>{$vo.withdraw_name}</td>
                    <td>{$vo.withdraw_account}</td>
                    <td>{$vo.withdraw_type}</td>
                    <td>{:date('m-d H:i',$vo.createtime)}</td>
                    {if condition="input('get.type')"}<th class="transfer transfer{$vo.id}">{if condition="$vo.transfer_status eq 1"}<font color="green">成功</font>{elseif condition="$vo.transfer_status eq 0"}<font color="blue">未转</font>{else /}<font color="red">失败：{$vo.transfer_result}</font>{/if}</th>{/if}
                    <td>
                        <a href="javascript:;" title="已完成" data-status="1" data-id="{$vo.id}" class="btn btn-success btn-xs btn-exec"><i class="fa fa-check"></i></a>
                        <a href="javascript:;" title="待处理" data-status="0" data-id="{$vo.id}" class="btn btn-warning btn-xs btn-exec"><i class="fa fa-refresh"></i></a>
                        <a href="javascript:;" title="失败" data-status="2" data-id="{$vo.id}" class="btn btn-primary btn-xs btn-exec"><i class="fa fa-remove"></i></a>
                </tr>
                {/volist}
            </tbody>
        </table>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" title="将所有待处理状态变更为已完成。并且将当前结算列表的状态改为已完成，对自动转账操作不影响" class="btn btn-success btn-embossed disabled">{:__('确定更新数据状态')}</button>
            {if condition="input('get.type')"}<button type="button" class="btn btn-primary btn-transfer">{:__('对选中项转账')}</button>{/if}
        </div>
    </div>
</form>
